package com.homedo.odin.solution.service;

import com.homedo.core.common.base.service.BaseService;
import com.homedo.odin.solution.dao.BountyTotalMapper;
import com.homedo.odin.solution.model.entity.BountyTotal;
import com.homedo.odin.solution.model.entity.BountyTotalBean;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 * <p> 悬赏汇总 服务实现类 </p>
 *
 * @author HarveyDing
 * @since 2018-03-08
 */
@Service
public class BountyTotalServiceImpl extends BaseService<BountyTotalMapper, BountyTotal> {

    public List<BountyTotalBean> getBountyMen(int top) {
        return baseMapper.getBountyMen(top);
    }

    public BountyTotalBean getMyBountyTotal(int userId) {
        return baseMapper.getMyBountyTotal(userId);
    }
}
